package v3.chapter7.threadExceptionMove;

public class Run2 {

	public static void main(String[] args) {
		MyThreadGroup group = new MyThreadGroup("test");
		MyThread myThread = new MyThread(group, "my");
		// 对象
		// myThread.setUncaughtExceptionHandler(new ObjectUncaughtExceptionHandler());
		// 类
	    MyThread.setDefaultUncaughtExceptionHandler(new StateUncaughtExceptionHandler());
		myThread.start();
	}

}
